package com.wlc.base.design.Strategy;

/**
 * @author 王立朝 wanglichao@champion-credit.com
 * @description 策略模式
 * @date 2021-09-17 00:52
 */
public class Test {

    public static void main(String[] args) {
        Context context;
        context = new Context(new PayWx());
        context.allPay();
        context = new Context(new PayZfb());
        context.allPay();
        context = new Context(new PayYl());
        context.allPay();
    }
}
